package qsc.designpattern.builder;

/**
 * @auther QiuShangcheng
 * @create 2021/4/28
 */
public class Human {
    private String head;
    private String body;
    private String foot;
    private String hand;

    public String getHead() {
        return head;
    }

    public Human() {
    }

    public Human(String head, String body, String foot, String hand) {
        this.head = head;
        this.body = body;
        this.foot = foot;
        this.hand = hand;
    }

    public Human setHead(String head) {
        this.head = head;
        return this;
    }

    public String getBody() {
        return body;
    }

    public Human setBody(String body) {
        this.body = body;
        return this;
    }

    public String getFoot() {
        return foot;
    }

    public Human setFoot(String foot) {
        this.foot = foot;
        return this;
    }

    public String getHand() {
        return hand;
    }

    public Human setHand(String hand) {
        this.hand = hand;
        return this;
    }

    @Override
    public String toString() {
        return "Human{" +
                "head='" + head + '\'' +
                ", body='" + body + '\'' +
                ", foot='" + foot + '\'' +
                ", hand='" + hand + '\'' +
                '}';
    }
}
